//
//  XMCallRechargeView.m
//  XunMi
//
//  Created by MacBook on 2024/4/23.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMCallRechargeView.h"

@implementation XMCallRechargeView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap)];
    [self addGestureRecognizer:tap];
    [self.goldButton setImagePosition:XMImagePositionLeft spacing:5];
}

- (void)tap {
    if (self.rechargeBlock) {
        self.rechargeBlock();
    }
}

@end
